    //导入 http
    import instance from '../../utils/http.js'

    //1 home 首页接口
    function getChannelList(){
        return instance({
            url:'/v1_0/channels',
            method:'get'
        })
    }
    //导出接口
    export {getChannelList}

    //2 文章列表
    function getArticleList({channel_id,timestamp}){
        return instance({
            url:'/v1_0/articles',
            method:'get',
            params:{
                //固定参数 写1 就好
                with_top:1,
                channel_id,
                timestamp
            }
        })
    }
    //导出接口
    export {getArticleList}